package ysc.cqnu.operdb.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ysc.cqnu.operdb.entity.ResultData;
import ysc.cqnu.operdb.mapper.ZhuangpeiMapper;
import ysc.cqnu.operdb.service.UpdateZhuangPeiInfoNoImgService;

@Service
public class UpdateZhuangPeiInfoNoImgServiceImpl implements UpdateZhuangPeiInfoNoImgService {
    @Autowired
    private ZhuangpeiMapper zhuangpeiMapper;
    @Autowired
    private ResultData resultData;
    @Override
    public ResultData updateZhuangPeiInfoNoImgService(String zhuangpei, String visualize, String purpose, String theSite, String bfDescribe, String id) {
        try {
            zhuangpeiMapper.updateZhuangpeiInfoNoImg(visualize,purpose,theSite,bfDescribe,id);
            resultData.flag="ZhuangpeiInfoSuccess";
            resultData.data=null;
        } catch (Exception e) {
            e.printStackTrace();
            resultData.flag="ZhuangpeiInfoFail";
            resultData.data=null;
            return resultData;
        }
        return resultData;
    }
}
